package org.vergil.core.designpattern.strategy;

/**
 * Created by vergil on 17-3-25.
 */

//儿童票折扣类：具体策略类
public class ChildrenDiscount extends AbstractDiscount {

    @Override
    public double calculate(double price) {
        System.out.println("儿童票：");
        return price - 10;
    }
}
